﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CampusTrade.Pojo
{
    [SugarTable("transaction")]
    public class Transaction
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
        [SugarColumn(ColumnName = "good_id")]
        public long GoodId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Good Good { get; set; }
        [SugarColumn(ColumnName = "trade_user_id")]
        public long TradeUserId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public User TradeUser { get; set; }
        [SugarColumn(ColumnName = "create_time")]
        public long CreateTime { get; set; }
        [SugarColumn(ColumnName = "longitude")]
        public double Longitude { get; set; }
        [SugarColumn(ColumnName = "latitude")]
        public double Latitude { get; set; }
        [SugarColumn(ColumnName = "address")]
        public string Address { get; set; }
        [SugarColumn(ColumnName = "trade_time")]
        public long TradeTime { get; set; }
    }
}
